﻿/*
 * 文件名:TeachingInfo.cs
 * 类名:XHCTMS.MODEL.Teaching
 * 创建人: 杨航
 * 创建时间: 2013-5-20 19:20:33
 *  
 * 最近更新：2013-5-23 15:44:51
 * 更新内容：Int类型修改为Int？类型
 * 备注: 
 *      Int? 可空类型，任何值类型都可用作可空类型的基础
 * 
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XHCTMS.MODEL
{
    /// <summary>
    /// 授课任务信息
    /// </summary>
    public class Teaching
    {
        /// <summary>
        /// 授课任务编号
        /// </summary>
        public int? TeachingId { get; set; }
        
        /// <summary>
        /// 所授班级
        /// </summary>
        public int? TeachingClassId { get; set; }

        /// <summary>
        /// 授课教师号
        /// </summary>
        public int? TeachingTeachId { get; set; }

        /// <summary>
        /// 所授课程
        /// </summary>
        public string TeachingLesson { get; set; }

        /// <summary>
        /// 结课时间
        /// </summary>
        public string TeachingDateTime { get; set; }

        /// <summary>
        /// 授课任务状态 1/在授, 0/结课未打分，-1/结课并打分
        /// </summary>
        public int? TeachingState { get; set; }

        /// <summary>
        /// 授课任务状态 显示
        /// </summary>
        public string TeachingStrState { get; set; }

        /// <summary>
        /// 页面大小
        /// </summary>
        public int? PageSize { get; set; }

        /// <summary>
        /// 页号
        /// </summary>
        public int? PageIndex { get; set; }

        public bool IsNull(Teaching teaching)
        {
            if (teaching.TeachingClassId == null && teaching.TeachingDateTime == null && teaching.TeachingId == null &&
                teaching.TeachingLesson == null && teaching.TeachingState == null && teaching.TeachingStrState == null &&
                teaching.TeachingTeachId == null && teaching.PageIndex == null && teaching.PageSize == null)
            {
                return true;
            }
            else
            {
                return false;            
            }
        }
    }
}
